package com.ctl.util;

/**
 * <p>Title: TaskScheduleModel</p >
 * <p>Description: </p >
 * <p>Copyright: Copyright (c) 2022</p >
 * <p>Company: www.ctl.com</p >
 *
 * @author ctl
 * @version 1.1
 * @date 2022-04-21 09:50
 */
public class TaskScheduleModel {
    /**
     * 所选作业类型:
     * 0  -> 每分钟
     * 1  -> 每小时
     * 2  -> 每天
     * 3  -> 每周
     * 4  -> 每月
     * 5  -> 每年
     */
   static public enum Types {
        T0(0, "每分钟"),
        T1(1, "每小时"),
        T2(2, "每天"),
        T3(3, "每周"),
        T4(4, "每月"),
        T5(5, "每年"),
        T6(6, "每秒");

        private Integer type;
        private String typeDesc;

        Types(Integer type, String typeDesc) {
            this.type = type;
            this.typeDesc = typeDesc;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public String getTypeDesc() {
            return typeDesc;
        }

        public void setTypeDesc(String typeDesc) {
            this.typeDesc = typeDesc;
        }}

    private Integer jobType;
    //启动时间
    private String startDate;

    public Integer getJobType() {
        return jobType;
    }

    public void setJobType(Integer jobType) {
        this.jobType = jobType;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public TaskScheduleModel(Integer jobType, String startDate) {
        this.jobType = jobType;
        this.startDate = startDate;
    }

    public TaskScheduleModel() {
    }
}
